//
//  BaseViewController.h
//  ManStoreDemo
//
//  Created by qianfeng01 on 15/7/22.
//  Copyright (c) 2015年 xiangmu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PictureCell.h"
#import "BaseModel.h"
#import "AFNetworking.h"
#import "DetailViewController.h"
#import "SingleViewController.h"
#import "KxMenu.h"
#import "Detail2ViewController.h"


#define kScreenSize [UIScreen mainScreen].bounds.size
#define kUrl @"http://api.nanyibang.com/single-product?&age=27&cate_id=%ld&height=170&hkm_sign=578fc394410331f888b09a38f6a960ea&member_id=10488&member_type=member&page=%ld&random_key=39518&selectType=def&skin_type=1&style=1&weight=60"

@interface BaseViewController : UIViewController

{
    UICollectionView *_collectionView;
    AFHTTPRequestOperationManager *_manager;
    UICollectionViewFlowLayout *_flowLayout;
    //CategoryBlock _myBlock;
}
@property (nonatomic,strong) NSMutableArray *dataArray;
@property (nonatomic,copy) NSString *str;
@property (nonatomic,copy) NSString *selectType;

@property (nonatomic,weak)UIViewController *containerViewContrller;
@property (nonatomic)BOOL isRefreshing;
@property (nonatomic)BOOL isLoadMore;
@property (nonatomic) NSInteger currentPage;


-(void)loadDataWith:(NSInteger)number;

-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath;
-(void)firstLoadWith:(NSInteger)number;
- (void)creatRefreshViewWith:(NSInteger)number;
@end
